import Vue from 'vue';
import axios from 'axios';
/* 1.引入第三方的ui */
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);
/* 2.设置过滤器 */
Vue.filter("handleString",function(val){
  if(val.length>4){
    val=val.slice(0,4)+"..."
  }
  return val
})
/* 3。axios */
Vue.prototype.$http = axios;

/* 4.配置全局组件 */
import Loading from '../components/Loading.vue'
Vue.component("Loading",Loading)